package com.shiguiwu.springmybatis.spring.cycle;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @description: 多例bean
 * @author: stone
 * @date: Created by 2021/11/17 23:33
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.cycle
 */
@Component
@Scope("prototype")
public class PrototypeBean {


    //@Autowired
    @Getter
    private SingletonBean singletonBean;

    @Autowired
    public void setSingletonBean(SingletonBean singletonBean) {
        this.singletonBean = singletonBean;
    }
}
